package xin.ryven.workflow.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import xin.ryven.workflow.model.FormField;
import java.util.List;

public interface FormFieldRepository extends JpaRepository<FormField, Long> {
    List<FormField> findByProcessDefinitionIdOrderByOrderIndex(String processDefinitionId);
    List<FormField> findByProcessDefinitionIdAndTaskDefinitionKeyOrderByOrderIndex(
        String processDefinitionId, 
        String taskDefinitionKey
    );
} 